package proxy;

/**
 * 功能:
 * 作者: ldl
 * 时间: 2016-08-10 20:28
 */
public class Main {

    public static void main(String[] args) {
        CglibProxy proxy = new CglibProxy();
        //通过生成子类的方式创建代理类
        Pursuit proxyImp = (Pursuit) proxy.getProxy(new Class[]{IGiveGift.class},new Class[]{String.class},new Object[]{"dd"});
        proxyImp.GiveChocolate();
    }
}
